import axios from "./index";
//查询默认地址
export function defaultAddress(data: getgoodslist) {
  return axios.post("/address/defaultAddress", data);
}
//添加地址
export function address(data: address) {
  return axios.post("/address/add", data);
}
//获取地址列表
export function getAddressList(data: getgoodslist) {
  return axios.get(`/address/list?userid=${data.userid}`);
}
//修改地址
export function setUpdate(data: setupdate) {
  return axios.post("/address/update", data);
}
//删除
export function setDelete(data: setdelete) {
  return axios.post("/address/delete", data);
}
